// Config.js
var version = '1.0.3';

var domain = {
    requestDomain: 'https://zuijia365.com',
    socketDomain: 'wss://zuijia365.com',
    uploadFileDomain: 'https://zuijia365.com',
    downloadFileDomain: 'https://zuijia365.com'
}

var service = {
    /**用户登录接口 */
    userLogin: '/todayHot/user/userLogin.json',

    /**创建用户 */
    saveUser: '/todayHot/user/saveIfNotExists.json',

    /**获取用户信息 */
    userInfo: '/todayHot/user/queryById.json',

    /**Send页分类列表 */
    categoryList: '/todayHot/userResource/getCategoryList.json',

    /**手页分类列表 */
    indexCategoryList: '/todayHot/userResource/getIndexCategoryList.json',

    /**某分类下话题列表 */
    topicList: '/todayHot/userResource/getTopicNameList.json',

    /**文件上传 */
    uploadFile: '/todayHot/userResource/uploadUserResource.json',

    /**资源详情 */
    resourceDetail: '/todayHot/userResource/getUserResourceDetail.json',

    /**点赞/评论 */
    favorComment: '/todayHot/userResource/saveResourceComment.json',

    /**评论列表 */
    commentList: '/todayHot/userResource/queryCommentByPage.json',

    /**首页资源列表 */
    resourceList: '/todayHot/resourceQuery/queryByPage.json',

    /**我的资源列表 */
    mySendList: '/todayHot/resourceQuery/queryMyByPage.json',

    /**我赞过/评论过的资源列表 */
    myLikeList: '/todayHot/resourceQuery/queryMyCommentByPage.json',

    /**我的消息 */
    myMessages: '/todayHot/message/queryMyMessages.json',

    /**反馈 */
    feedBack: '/todayHot/feedback/saveFeedBackInfo.json',

    /**赞评论 */
    likeComment: '/todayHot/userResource/likeComment.json',

    /**取消对图片的点赞 */
    cancelImageLike: '/todayHot/userResource/delResourceComment.json',

    /**取消对评论的点赞*/
    cancelCommentLike: '/todayHot/userResource/unlikeComment.json',

    queryTopUsers: '/todayHot/top/queryTopUsers.json',

    queryTopResources: '/todayHot/top/queryTopResources.json',

    recommendResources: '/todayHot/recommend/recommendResources.json'

};

var storage = {
    keyUserInfo: 'key_user_info',
    keyCategories: 'key_categories',
    keySystemInfo: 'key_system_info',
    keySessionId: 'key_session_id',
    keyLikeIdList: 'key_like_id_list',
    keyImageLikeIdList: 'key_image_like_id_list'
};

module.exports = {
    version: version,
    domain: domain,
    service: service,
    storage: storage
};